using System;
using System.ComponentModel.DataAnnotations;

namespace Domain
{
    /// <summary>
    /// 商品信息实体，继承审计字段。
    /// </summary>
    public class ProductInfo : AuditFields
    {
        /// <summary>
        /// 商品主键
        /// </summary>
        [Key]
        public int UId { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 生产批次
        /// </summary>
        public string BatchNumber { get; set; } = string.Empty;

        /// <summary>
        /// 保质期（天）
        /// </summary>
        public int ShelfLifeDays { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string ProductionLicenseNumber { get; set; } = string.Empty;

        /// <summary>
        /// 生产企业
        /// </summary>
        public string Manufacturer { get; set; } = string.Empty;

        /// <summary>
        /// 图片外键
        /// </summary>
        public int ImageId { get; set; }
    }
} 